#ifndef IO_UTIL_H
#define IO_UTIL_H

#include <stdint.h>
#include <pspkernel.h>

inline void make_32_be(uint32_t *num);
inline void make_16_be(uint16_t *num);

inline uint32_t read_32_be(SceUID);
inline uint16_t read_16_be(SceUID);
inline uint8_t read_8_be(SceUID);

inline uint32_t seek_32_be(SceUID);
inline uint16_t seek_16_be(SceUID);

inline void read_8_str(SceUID, char**);
inline void read_16_str(SceUID, char **);

inline void skip_bytes(SceUID, uint32_t);
inline void skip_8_str(SceUID);
inline void skip_16_str(SceUID);

#endif
